switch (location.host) {
	case "www.kugou.com":
		var filename = document.getElementsByClassName("audioName")[0].innerText;
		var cname = document.querySelector('.singerName.fl').getAttribute('title') || "";
		sendMsg('《'+filename+"》-"+cname);
		break;
	case "y.qq.com":
		var filename = document.getElementsByClassName("songlist__songname_txt")[0].innerText;
		var cname = document.querySelector('.songlist__artist').getAttribute('title') || "";
		sendMsg('《'+filename+"》-"+cname);
		break;
	case "music.163.com":
		var filename = document.getElementsByClassName("f-thide name fc1 f-fl")[0].innerText;
		var cname = "";
		if(document.querySelector('.by.f-thide.f-fl span')){
			cname =	document.querySelector('.by.f-thide.f-fl span').getAttribute('title');
		}else if(document.querySelector('.by.f-thide.f-fl a').innerText){
			cname =	 document.querySelector('.by.f-thide.f-fl a').innerText;
		}
		sendMsg('《'+filename+'》-'+cname);//play_name
		break;
	case "www.kuwo.cn":
		var filename = document.querySelector('.control .song_name').innerText;
		var cname = document.querySelector('.control .artist').getAttribute('title') || "";
		sendMsg('《'+filename+'》-'+cname);
		break;
	case "kg.qq.com"://全名多域名1
		var filename = document.querySelector(".mod_content .play_name").innerText;
		var cname = "";
		Array.prototype.slice.call(document.querySelectorAll('.singer_con .singer_user__name')).forEach(function(item,index){
			if(index==0){
				cname+=item.innerText;
			}else{
				cname+="+"+item.innerText;
			}
		});
		sendMsg('《'+filename+'》-'+cname);
		break;
	case "kg2.qq.com"://全名多域名2
		var filename = document.querySelector(".mod_content .play_name").innerText;
		var cname = "";
		Array.prototype.slice.call(document.querySelectorAll('.singer_con .singer_user__name')).forEach(function(item,index){
			if(index==0){
				cname+=item.innerText;
			}else{
				cname+="+"+item.innerText;
			}
		});
		sendMsg('《'+filename+'》-'+cname);
		break;
	case "node.kg.qq.com"://全名多域名3
		var filename = document.querySelector(".mod_content .play_name").innerText;
		var cname = "";
		Array.prototype.slice.call(document.querySelectorAll('.singer_con .singer_user__name')).forEach(function(item,index){
			if(index==0){
				cname+=item.innerText;
			}else{
				cname+="+"+item.innerText;
			}
		});
		sendMsg('《'+filename+'》-'+cname);
		break;
	case "changba.com":
		var filename = document.querySelector(".widget-player .title").innerText;
		var cname = document.querySelector(".ulevel .uname.twemoji").innerText;
        sendMsg('《'+filename+'》-'+cname);
		break;
	case "www.ximalaya.com":
		sendMsg(document.getElementsByClassName("fm-title")[0].innerText);
	case "music.migu.cn":
		var filename = document.querySelector('.cp-meta-song').innerText;
		var cname = document.querySelector('.cp-meta-singer a').innerText;
		sendMsg('《'+filename+'》-'+cname);
	case "www.xiami.com":
		var filename = document.querySelector('.music .title').innerText;
		var cname = "";
		Array.prototype.slice.call(document.querySelectorAll('.music .singers a')).forEach(function(item,index){
			if(index==0){
				cname+=item.innerText;
			}else{
				cname+="+"+item.innerText;
			}
		})
		sendMsg('《'+filename+'》-'+cname);
}
function sendMsg(uname) {
	chrome.runtime.sendMessage({musicName:uname});
}